package com.java.day10;

import com.java.day08.homework.pk.Hero;

public class ObjectDemo {
    public static void main(String[] args) {
        Hero hero1 = new Hero("亚索",100,30);
        Hero hero2 = new Hero("亚索",100,30);

        boolean equals = hero1.equals(hero2);

        System.out.println(equals);

    }
}
